package services

import (
	"WORKSPACE/dao"
	"WORKSPACE/models"
)

func GetAlldepartment() (error, []models.Department, int64) {
	err, department, total := dao.GetAlldepartment()
	return err, department, total
}


func Deldepartment(dno string) error {
	err := dao.Deldepartment(dno)
	return err
}

func Updatedepartment(department models.Department) error{
	err:= dao.Updatedepartment(department)
	return err
}

func Adddepartment(department models.Department) (error) {
	err := dao.Adddepartment(department)
	return err
}
